package com.monkeyk.springinaction.context;

/**
 * 2017/11/2
 *
 * @author Shengzhao Li
 */

public class CDPlayer implements MediaPlayer {


    private CompactDisc cd;

    public CDPlayer(CompactDisc cd) {
        this.cd = cd;
    }

    @Override
    public void play() {
        this.cd.play();
    }
}
